package com.hhsjtest.segiui;

//import com.hhsjdesign.dynamicui.generate.DynamicUIMap__bus_advert;
//import com.hhsjdesign.dynamicui.generate.DynamicUIMap__bus_enter;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

public class DynamicUiRegisterJava {

    public Map<String, Class<?>> businessTypeList()  {
        Map<String,Class<?>> result = new HashMap<>();
        try {
            Class clazz = Class.forName("com.hhsjtest.segiui.DynamicUIMap__bus_advert.INSTANCE");
            Method method = clazz.getDeclaredMethod("beans");
            method.setAccessible(true);
            method.invoke(null);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        }
//        result.putAll(DynamicUIMap__bus_advert.INSTANCE.beans());
//        result.putAll(DynamicUIMap__bus_enter.INSTANCE.beans());
        return result;
    }

    public Map<String, Class<?>> viewHolderTypeList()  {
        Map<String,Class<?>> result = new HashMap<>();
//        result.putAll(DynamicUIMap__bus_advert.INSTANCE.viewHolders());
//        result.putAll(DynamicUIMap__bus_enter.INSTANCE.viewHolders());
        return result;
    }

    public Map<String, Class<?>> dataCallerTypeList()  {
        Map<String,Class<?>> result = new HashMap<>();
//        result.putAll(DynamicUIMap__bus_advert.INSTANCE.callers());
//        result.putAll(DynamicUIMap__bus_enter.INSTANCE.callers());
        return result;
    }

}
